package com.wanli.domain.entity;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.util.List;

import com.wanli.common.BaseEntity;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;

/**
 * <p>
 * 
 * </p>
 *
 * @author Byterain
 * @since 2023-12-06
 */
@Data
@TableName("sys_role")
public class Role extends BaseEntity {

    private static final long serialVersionUID = 1L;
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    @TableField("name")
    private String name;
    @TableField("code")
    private String code;
    @TableField("remark")
    private String remark;
    @TableField("created")
    private LocalDateTime created;
    @TableField("updated")
    private LocalDateTime updated;
    @TableField("statu")
    private Integer statu;
    //角色所能操作的菜单的id
    @TableField(exist = false)
    private List<Long> menuIds;
}
